<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="px" uri="/WEB-INF/tld/pex.tld"%>
<%@ taglib prefix="c" uri="/WEB-INF/tld/c.tld"%>
<%@ taglib prefix="fn" uri="/WEB-INF/tld/fn.tld"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>温江人大代表之家</title>
<link href="<%=path%>/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=path%>/js/main.js"></script>
<script type="text/javascript" src="<%=path%>/js/pex.js"></script>
<script type="text/javascript" src="<%=path%>/js/jquery1.4.2.js"></script>
<script type="text/javascript">
 $(function(){
	 //新闻名称加载
	     var path = document.getElementById("path").value+"/";
	     var pid=$("#pidhid").val();
         if(pid=="00"){
        	 pid='06';
            }
	    		 $.post("<%=path%>/selectchannel/selectChannel.do",{pid:pid},function(data){
	  		          if(data!=null&&data.length>0){
	  		          var html="";
    		           $(data).each(function(i){
    		           		html=html+"<tr><td align='left'>&nbsp;&nbsp;&nbsp;&nbsp;<img src='"+path+"images/arrow.gif' align='absmiddle' /><a href='"+path+"article/getdaibiaofcPageQuery.do?channelId="+this.channelId+"'> "+this.name+"</a></td></tr>";
    		           });
    		          $("#xwmcquery").html(html);
	  		          }
	  		            document.getElementById("xwmctishi").style.display = "none";
		   			},"json");
	//基层专栏加载
			 $.post("<%=path%>/selectchannel/selectChannel.do",{pid:'08'},function(data){
	  		          if(data!=null&&data.length>0){
	  		          var html="<tr>";
    		           $(data).each(function(i){
    		        	   if(i!=0&&i%2==0){
    		        		   html=html+"</tr><tr><td style='background-color:#ffd8d8; border:1px solid #FF6600; text-align:center; width:80px'><a href='"+path+"zhengymquery/initIndex.do?pid="+this.pid+"' target='_blank'>"+this.name+"</a></td>";
    		        	   }else{
    		        		   html=html+"<td style='background-color:#ffd8d8; border:1px solid #FF6600; text-align:center; width:80px'><a href='"+path+"zhengymquery/initIndex.do?pid="+this.pid+"' target='_blank'>"+this.name+"</a></td>";
    		        	   }
    		           });
    		           html=html+"</tr>";
    		          $("#jczlquery").html(html);
	  		          }
	  		          document.getElementById("jczltishi").style.display = "none";
		   			},"json");
 });
</script>
  </head>
<body>
<div id="header">
  <iframe src="<%=path%>/query/header.do" width="100%" height="337" frameborder="0" scrolling="no" name="header"></iframe>
</div>
<div id="content">
  <table border="0" align="center" cellpadding="0" cellspacing="0" style="margin-bottom:7px">
    <tr>
      <td width="237" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td class="sailBox2_title"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td class="sailBox2_title_txt">${channel.parent}</td>
              <td class="sailBox2_title_more">&nbsp;</td>
            </tr>
          </table></td>
        </tr>
        <tr>
        <td class="sailBox2_cont"><table border="0" align="center" cellpadding="0" cellspacing="2" class="pageColumn">
            <!-- 新闻名称加载 -->
               <tr id="xwmctishi">
              				<td align="center" bgcolor="#F4F4F4">
              					<img src='<%=path%>/images/loading/x-large-loading.gif' 
              						width='25' height='25' align='absmiddle'/>
              					<span class="gray">加载中...</span>
              				</td>
              			</tr>
                <tbody id="xwmcquery"></tbody>
            </table></td>
        </tr>
      </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:7px">
               <tr>
            <td class="sailBox2_title"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td class="sailBox2_title_txt">基层专栏</td>
                <td class="sailBox2_title_more">&nbsp;</td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td  class="sailBox2_cont"><table border="0" align="center" cellpadding="5" cellspacing="5">
                <!-- 基层专栏加载 -->
               <tr id="jczltishi">
              				<td align="center" bgcolor="#F4F4F4">
              					<img src='<%=path%>/images/loading/x-large-loading.gif' 
              						width='25' height='25' align='absmiddle'/>
              					<span class="gray">加载中...</span>
              				</td>
              			</tr>
              			  <tbody id="jczlquery"></tbody>
            </table></td>
          </tr>
        </table></td>
      <td style="width:8px"></td>
      <td width="722" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td class="sailBox_title"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td class="sailBox_title_txt">${channel.name}</td>
              <td align="right" class="sailBox_title_more">当前位置：首页 -&gt;${channel.parent }</td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td height="220" class="sailBox_cont"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="idxList">
            <tr>
              <th>${name}</th>
            </tr>
            <tr>
            <td style="line-height:2em; padding:20px;">
              <div align="center" style="margin-bottom:15px"><img src="${titleImg}" width="200" height="300" style="border:1px solid #CCC" /></div>
           	<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
                  <tr>
                    <td width="80" align="center" bgcolor="#FFFFFF"><strong>姓　名：</strong></td>
                    <td bgcolor="#FFFFFF">${name}</td>
                  </tr>
                  <tr>
                    <td align="center" bgcolor="#FFFFFF"><strong>单　位：</strong></td>
                    <td bgcolor="#FFFFFF">${unit}</td>
                  </tr>
                  <tr>
                    <td align="center" bgcolor="#FFFFFF"><strong>电 话：</strong></td>
                    <td bgcolor="#FFFFFF">${phone }</td>
                  </tr>
                  <tr>
                    <td align="center" bgcolor="#FFFFFF"><strong>简　介：</strong></td>
                    <td bgcolor="#FFFFFF">${intro}</td>
                  </tr>
                </table>
            </td>
            </tr>
             <tr>
              <td align="center"><a href="javascript:history.back();"><img src="<%=path %>/images/btn_back.gif" width="60" height="22" /></a></td>
            </tr>
          </table>
          </td>
        </tr>
      </table></td>
    </tr>
  </table>
</div>
<!-- 栏目pid -->
<input type="hidden" value="${channel.pid}"  id="pidhid"/>
<input type="hidden" value="<%=path%>" id="path"/>
<div style="text-align:center">
<iframe src="<%=path%>/query/footer.do" width="970px" height="100" frameborder="0" scrolling="no" name="footer"></iframe>
</div>
</body>
</html>
